package com.xizimall.search.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
/**
 * 索引库维护
 * <p>Title: ItemController</p>
 * <p>Description: </p>
 * <p>华南理工大学研究生</p> 
 * @author	李隆熹
 * @date	2018年4月24日下午7:38:02
 * @version 1.0
 */
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.xizimall.search.service.ItemService;
import com.xizimall.common.pojo.XizimallResult;
@Controller
@RequestMapping("/manager")
public class ItemController {
	
	@Autowired
	private ItemService itemService;
    /**
     * 导入商品数据到索引库
     */
	@RequestMapping("/importall")
	@ResponseBody
	public XizimallResult importAllItems(){
		XizimallResult result=itemService.getItemList();
		return result;
	}
}
